<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="../../../../common/taglibs.jsp"%>
<html>
<head>
	<title>登录</title>
	<script type="text/javascript" src="../../../../js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript">
		//刷新验证码
		function randomcode_refresh(){
			$("#randomcode_img").attr("src", "${ctx}validatecode.jsp?random="+Math.random());
		}
		
		/* 提示信息 */
		$(function(){
			if("${error}".length > 0){
				$("#error").html("${error}");
			}
		})
    </script>
</head>
<body>
	<div style="width: 1010px;margin: 0 auto;">
	<form action="${ctx}loginsubmit" method="post">
		<table>
			<tbody>
				<tr>
					<td>用户名：</td>
					<td colspan="2">
						<input type="text" id="usercode" name="username" style="width: 130px" />
					</td>
				</tr>
				<tr>
					<td>密 码：</td>
					<td>
						<input type="password" id="pwd" name="password" style="width: 130px" />
					</td>
				</tr>
				<tr>
					<td>验证码：</td>
					<td>
						<input id="randomcode" name="randomcode" style="width: 74px" /> 
						<img id="randomcode_img" style="float:right; width: 56px; height: 20px;" src="${ctx}validatecode.jsp" title="点击更换" onclick="randomcode_refresh();" />
					</td>
				</tr>
				<tr>
					<td colspan="2"><span id="error" style="font-size: 7px;color: red;"></span></td>
				</tr>
				<tr>
					<td></td>
					<td><input type="checkbox" name="rememberme" />自动登陆</td>
				</tr>
				<tr>
					<td colspan="2" align="center">
						<input type="submit" value="登&nbsp;&nbsp;录" /> 
						<input type="reset" class="btnalink" value="重&nbsp;&nbsp;置" />
					</td>
				</tr>
			</tbody>
		</table>
	</form>
	</div>
</body>
</html>
